import redis from 'redis';

import redisConfig from '../config/redis.js'

const client = redis.createClient(redisConfig)

client.on('error', err => console.error(err.message))

client.on('end', () => console.log('end'))

client
  .multi()
  .set('name','ling')
  .get('name')
  .exec((err, replies) => {
    console.log(replies)
  })

client.quit(() => console.log('退出'))

